<?php
/**
 * Pertyler Classes
 * Uploaded Image Class
 *
 * @author	Emre Hasegeli <hasegeli@gmail.com>
 * @license	GNU General Public License v3
 */

namespace Pertyler;

class UploadedImage extends UploadedFile implements iImage
{
	static $minSize = 5000;

	protected function typeException($type)
	{
		if($this->extension != 'png')
			throw new FileUploadException('The uploaded file\'s extension is not \'png\'.');

		if($type != 'image/png')
			throw new FileUploadException('The uploaded file is not an PNG image.');
	}

	protected static $object = 'Pertyler\Image';

	public function Resize()
	{
	}
}